home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / AZTECW.DIR / 01706_Script_The Gods < prev    next >
Text File  |  1995-09-12  |  3KB  |  101 lines

  1. global gQuest, gBeenClicked
  2.  
  3. on AGodsRollovers
  4.   set gBeenClicked = 0
  5.   if (not(CheckClickedStatus(gQuest))) then
  6.     if the mousecast = the castnum of sprite 3 then
  7.       repeat while the mousecast = the castnum of sprite 3
  8.         AztecCursor
  9.         if the mousedown then
  10.           puppetsound "SA360201.AIF"
  11.           updatestage
  12.           repeat while rollover(2)
  13.             puppetsprite 3, true
  14.             puppetsprite 7, true
  15.             puppetsprite 11, true
  16.             set the locH of sprite 11 to 422
  17.             set the locV of sprite 11 to 216
  18.             set the locH of sprite 3 to 822
  19.             set the castnum of sprite 7 = 733
  20.             updatestage
  21.           end repeat
  22.           ResetTempleRoof
  23.         end if
  24.       end repeat
  25.     else
  26.       if rollover(9) then
  27.         repeat while rollover(9)
  28.           AztecCursor
  29.           puppetsprite 18, true
  30.           set the locH of sprite 18 to 320
  31.           set the locV of sprite 18 to 155
  32.           updatestage
  33.           if the mousedown then
  34.             set GBeenClicked = 1
  35.           else
  36.             if gBeenClicked = 1 then
  37.               repeat while gBeenClicked = 1
  38.                 AnimateLoopFast 10, 736, 3, "SA360901.AIF", 4
  39.               end repeat
  40.             end if
  41.           end if
  42.         end repeat
  43.         puppetsprite 18, false
  44.       else
  45.         if rollover(12) then
  46.           ArrowCursor
  47.           repeat while rollover(12)
  48.             set the locH of sprite 13 to 431
  49.             set the locV of sprite 13 to 351
  50.             updatestage
  51.           end repeat
  52.           set the locH of sprite 13 to 931
  53.           updatestage
  54.         else
  55.           if rollover(14) then
  56.             ArrowCursor
  57.             repeat while rollover(14)
  58.               set the locH of sprite 15 to 337
  59.               set the locV of sprite 15 to 335
  60.               updatestage
  61.             end repeat
  62.             set the locH of sprite 15 to 937
  63.             updatestage
  64.           else
  65.             if rollover(16) then
  66.               ArrowCursor
  67.               repeat while rollover(16)
  68.                 set the locH of sprite 17 to 298
  69.                 set the locV of sprite 17 to 214
  70.                 updatestage
  71.               end repeat
  72.             else
  73.               if rollover(41) then
  74.                 HandCursor
  75.               else
  76.                 if rollover(42) then
  77.                   HandCursor
  78.                 else
  79.                   ArrowCursor
  80.                 end if
  81.               end if
  82.             end if
  83.           end if
  84.         end if
  85.       end if
  86.     end if
  87.   end if
  88.   RandomQuestion(gQuest)
  89. end
  90.  
  91.  
  92. on ResetTempleRoof
  93.   set the locH of sprite 3 to 275
  94.   set the locV of sprite 3 to 248
  95.   set the castnum of sprite 7 to 734
  96.   puppetsprite 3, false
  97.   puppetsprite 7, false
  98.   puppetsprite 11, false
  99.   updatestage
  100. end
  101.